<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>用户注册信息</title>
</head>
<body>
<div>
    <%
        //定义访问次数
        //定义访问次数
        Integer count  = (Integer) application.getAttribute("count");

        //第一次获取时，没有向application容器加count变量，此时count为空
        //第二次获取时，向application容器加count变量，此时count不为空
        if (count == null){

            count = 1;//初始化count

        }else {
            count++;//获取每次登录时的访问次数
        }
        application.setAttribute("count",count);//向application容器加入count访问次数的变量
    %>
    <%

        Integer i = (Integer) application.getAttribute("count");
        out.print("本站访问人数为："+i);
    %>

</div>
<br/>
<form action="UserServlet" method="post" class="form-horizontal">
    <div>
        <ul style="list-style-type: none">
            <li>
                <p style="margin-left: 120px">修改密码</p>
            </li>
            <li>
                <span style="padding-right: 16px"> 用户名：</span>
                <input type="text" name="username">
            </li>
            <li>
                <span style="padding-right: 16px">原密码：</span>
                <input type="password" name="userpsw">
            </li>
            <li>
                <span style="padding-right: 16px">新密码：</span>
                <input type="password" name="newuserpsw" value="">
            </li>
            <li>
                <span>确认密码：</span>
                <input type="password" name="querenPsw">
                <span class="confirm_hint" style="float: left;margin-left: 2px"></span>
            </li>

            <li>
                <button type="submit" name="button" style="float:left;">确认</button>
                <button type="button" name="button" style="float: left;margin-left: 164px">取消</button>
            </li>
        </ul>
    </div>
</form>
</body>
</html>